﻿@model ConfigDashboard.Models.ConfigSettingName

@{
    ViewBag.Title = "Edit Setting Name";
}

<h2>Edit Setting Name</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Setting Name</legend>

        @Html.HiddenFor(model => model.SettingID)

        <div class="editor-label">
            @Html.LabelFor(model => model.SettingName, "Setting Name")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SettingName)
            @Html.ValidationMessageFor(model => model.SettingName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ViewOrder, "View Order")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ViewOrder)
            @Html.ValidationMessageFor(model => model.ViewOrder)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.SettingType, "Setting Type")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.SettingType)
            @Html.ValidationMessageFor(model => model.SettingType)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Comment)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Comment, new { @style = "width: 800px;"})
            @Html.ValidationMessageFor(model => model.Comment)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("« Back to List of Setting Names", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
